<?php

if (!defined('BASEPATH'))
    exit('No direct script access allowed');

if (!function_exists('find_percent')) {

    //Example: find 30% of 150
    function find_percent($percent, $total) {

        $percent_amount = 0;

        $total = $total / 100;
        $percent_amount = $total * $percent;

        return $percent_amount;
    }

}
?>